import type { CardListData, CardListParams } from "@/types/cart"
import { request } from "@/utils/reuqest"

/****
 * 获取月卡列表
 */
export const getCardListAPI = (params:CardListParams)=>{
  return request<CardListData>('/parking/card/list','GET',params)
}
/**
 * 删除月卡
 * @param {*} id
 * @returns
 */
export const delCardAPI = (id:string)=>{
  return request(`/parking/card/${id}`, 'DELETE')
}